From 13ce3435f975aff9382ec092cb43e07ee15a6486 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 3 Aug 2005 16:58:25 +0000 Subject: [PATCH] strcasecmp -> case_ignore_strcmp --- csv_util.c | 6 +++--- gpx.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/csv_util.c b/csv_util.c index 70cfd8c33..263d4f95c 100644 --- a/csv_util.c +++ b/csv_util.c @@ -911,11 +911,11 @@ xcsv_parse_val(const char *s, waypoint *wpt, const field_map_t *fmp) if (strcmp(fmp->key, "GPS_FIX") == 0) { wpt->fix = atoi(s)-1; if ( wpt->fix < fix_2d) { - if (!strcasecmp(s, "none")) + if (!case_ignore_strcmp(s, "none")) wpt->fix = fix_none; - else if (!strcasecmp(s, "dgps")) + else if (!case_ignore_strcmp(s, "dgps")) wpt->fix = fix_dgps; - else if (!strcasecmp(s, "pps")) + else if (!case_ignore_strcmp(s, "pps")) wpt->fix = fix_pps; else wpt->fix = fix_unknown; diff --git a/gpx.c b/gpx.c index 36cdb8493..8374d927c 100644 --- a/gpx.c +++ b/gpx.c @@ -839,11 +839,11 @@ gpx_end(void *data, const char *el) case tt_fix: wpt_tmp->fix = atoi(cdatastrp)-1; if ( wpt_tmp->fix < fix_2d) { - if (!strcasecmp(cdatastrp, "none")) + if (!case_ignore_strcmp(cdatastrp, "none")) wpt_tmp->fix = fix_none; - else if (!strcasecmp(cdatastrp, "dgps")) + else if (!case_ignore_strcmp(cdatastrp, "dgps")) wpt_tmp->fix = fix_dgps; - else if (!strcasecmp(cdatastrp, "pps")) + else if (!case_ignore_strcmp(cdatastrp, "pps")) wpt_tmp->fix = fix_pps; else wpt_tmp->fix = fix_unknown; -- 2.30.2